/* Mileage Calculator Styles */

/* Remove Input Spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Mileage Section */
.mileage-section {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
}

.mileage-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mileage-section h1 {
    font-size: 3rem;
    color: #B4D7CE;
    margin-bottom: 1rem;
    text-align: center;
}

.mileage-section .subtitle {
    color: #7fa99b;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(201, 169, 97, 0.05));
    border: 2px solid #C9A961;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.info-box h3 {
    color: #C9A961;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-box p {
    color: #B4D7CE;
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-box ul {
    color: #B4D7CE;
    margin-left: 25px;
    line-height: 1.8;
}

.info-box strong {
    color: #C9A961;
}

/* Mileage Form */
.mileage-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background-color: #2c3642;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header {
    background: linear-gradient(135deg, #39A078, #2d8060);
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #B4D7CE;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    padding: 12px;
    border: 2px solid #3d4654;
    border-radius: 6px;
    background-color: #1a1f2e;
    color: #B4D7CE;
    font-size: 1rem;
    width: 100%;
    height: 45px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #39A078;
}

.form-group small {
    color: #7fa99b;
    font-size: 0.85rem;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #B4D7CE;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.radio-label:hover {
    background-color: rgba(57, 160, 120, 0.1);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #39A078;
}

.radio-label span {
    font-size: 1rem;
}

/* Hidden Section */
.hidden {
    display: none !important;
}

/* Buttons */
.btn-calculate {
    padding: 12px 30px;
    background: linear-gradient(135deg, #C9A961, #b89850);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.3);
}

/* Results Section */
.results-section {
    background-color: #2c3642;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 25px;
}

.result-card {
    background-color: #1a1f2e;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #3d4654;
    transition: all 0.3s ease;
    text-align: center;
}

.result-card:hover {
    border-color: #39A078;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.result-label {
    color: #7fa99b;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    color: #39A078;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 15px;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #3d4654;
}

.result-breakdown span {
    color: #B4D7CE;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-breakdown strong {
    color: #39A078;
    font-size: 0.95rem;
}

/* Action Buttons */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.reset-btn,
.save-btn,
.print-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-btn {
    background-color: #3d4654;
    color: #B4D7CE;
}

.save-btn {
    background: linear-gradient(135deg, #39A078, #2d8060);
    color: white;
}

.print-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
}

.reset-btn:hover,
.save-btn:hover,
.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Tips Section */
.tips-section {
    margin-top: 50px;
    padding: 30px;
    background-color: #2c3642;
    border-radius: 12px;
}

.tips-section h3 {
    color: #B4D7CE;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-card {
    background-color: #1a1f2e;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #39A078;
}

.tip-card h4 {
    color: #39A078;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tip-card p {
    color: #B4D7CE;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Toast Notifications */
.mileage-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #39A078;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.mileage-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    header,
    footer,
    .form-actions,
    .tips-section,
    .info-box {
        display: none !important;
    }

    .mileage-section {
        padding: 20px 0;
        background: white;
    }

    .form-section,
    .result-card {
        border: 1px solid #000;
        background: white;
        color: #000;
    }

    .result-value,
    .result-breakdown strong {
        color: #000;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mileage-section {
        padding: 6rem 0 2rem;
    }

    .mileage-section h1 {
        font-size: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .reset-btn,
    .save-btn,
    .print-btn {
        width: 100%;
    }

    .info-box {
        padding: 15px;
    }

    .info-box h3 {
        font-size: 1.1rem;
    }
}
